<!--{include(pe_tpl('header.html'));}-->
<div class="right_page">
	<div class="now">
		<a href="javascript:;" class="sel">{$menutitle}<i></i></a>
		<div class="clear"></div>
	</div>
	<form method="post" id="form">
	<div class="right_main">
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="wenzhang mat20">
		<tr>
			<td align="right" width="200">文章名称：</td>
			<td><input type="text" name="info[article_name]" value="{$info['article_name']}" class="inputall input800" /></td>
		</tr>
		<tr>
			<td align="right">文章分类：</td>
			<td>
				<select name="info[category_id]" class="inputselect">
				<!--{foreach($cache_category_arr[$info['category_type']] as $v):}-->
				<option value="{$v['category_id']}" <!--{if($v['category_id']==$info['category_id']):}-->selected="selected"<!--{endif;}-->>{$v['category_name']}</option>
				<!--{endforeach;}-->
				</select>
			</td>
		</tr>
		<tr>
			<td align="right">封面图片：</td>
			<td id="album_box">
				<div class="upload_box" style="width:120px;height:120px">
					<img src="{pe_thumb($info['article_logo'])}" class="upload_img" />
					<input type="hidden" name="info[article_logo]" value="{$info['article_logo']}" class="upload_val">
				</div>
			</td>
		</tr>
		<tr>
			<td align="right">发布日期：</td>
			<td><input type="text" name="info[article_atime]" value="{pe_date($info['article_atime'] ? $info['article_atime'] : time())}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate inputall" /></td>
		</tr>
		<tr>
			<td align="right">文章详情：</td>
			<td><textarea name="info[article_text]" id="editortext" style="width:1000px;height:500px">{$info['article_text']}</textarea></td>
		</tr>
		</table>
	</div>
	<div class="right_bottom center">
		<input type="hidden" name="pesubmit" />
		<input type="hidden" name="pe_token" value="{$pe_token}" />
		<input type="button" value="提 交" class="tjbtn" />
	</div>
	</form>
</div>
<script type="text/javascript" src="{$pe['host']}include/plugin/my97/WdatePicker.js"></script>
<script type="text/javascript" src="{$pe['host']}include/plugin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="{$pe['host']}include/plugin/ueditor/ueditor.api.js"></script>
<link rel="stylesheet" href="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/style.css">
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/plupload.min.js"></script>
<script src="{$pe['host']}include/plugin/plupload/{$cache_setting['upload_server']}/upload.js"></script>
<script type="text/javascript">
$(function(){
	$("#album_box").pe_upload();
	$(":button").click(function(){
		pe_submit("{pe_nowurl()}", function(json){
			if (json.code == 1) pe_open('back', 1000);
		})
	})
})
UE.getEditor('editortext');
</script>
<!--{include(pe_tpl('footer.html'));}-->